﻿<Page
    x:Class="SimpleLayoutDemo.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:SimpleLayoutDemo"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">

        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>

        <Frame x:Name="MyFrame" Grid.Row="1" />

        <ScrollViewer Background="SteelBlue" 
                      HorizontalScrollBarVisibility="Auto"
                      VerticalScrollBarVisibility="Disabled"
                      VerticalScrollMode="Disabled"
                      HorizontalScrollMode="Enabled">
                <StackPanel Orientation="Horizontal" >
                    <Button FontSize="20" Margin="10" Content="&lt;Canvas /&gt;" Click="Button_Click_1" />
                    <Button FontSize="20" Margin="10" Content="&lt;StackPanel /&gt;" Click="Button_Click_2" />
                    <Button FontSize="20" Margin="10" Content="&lt;Grid /&gt;" Click="Button_Click_3" />
                    <Button FontSize="20" Margin="10" Content="&lt;WrapGrid /&gt;" Click="Button_Click_4" />
                <Button FontSize="20" Margin="10" Content="&lt;ScrollViewer /&gt;" Click="Button_Click_5" />
                <Button FontSize="20" Margin="10" Content="&lt;ViewBox /&gt;" Click="Button_Click_6" />
            </StackPanel>
        </ScrollViewer>
    </Grid>
</Page>